package com.cn.qgx428.lazydiary.network.service

import com.cn.qgx428.lazydiary.db.bean.CBill
import com.cn.qgx428.lazydiary.network.bean.BillResponse
import com.cn.qgx428.lazydiary.network.bean.CommonResponse
import retrofit2.http.*
import rx.Observable

/**
 * Created by qinguanxiong on 2018/4/3.
 */
interface BillService {
    @FormUrlEncoded
    @POST("Bill/update")
    fun update(@Field("createtime") createtime:String,
               @Field("type") type: String,
               @Field("specific") specific: String,
               @Field("price") price: String,
               @Field("no") no: String,
               @Field("total") total: String,
               @Field("remark") remark: String,
               @Field("userid") userid: Int):
            Observable<CommonResponse>

    @GET("Bill/get")
    fun get(@Query("userid") userid: Int):
            Observable<BillResponse>
}